<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import joomla controller library
jimport('joomla.application.component.controller');
 
// Get an instance of the controller prefixed by HelloWorld
$controller = JControllerLegacy::getInstance('Comsldr');
// if(!defined('DS')){
    // define('DS',DIRECTORY_SEPARATOR);
// }
// require_once (JPATH_COMPONENT.DS.'controller.php');
// Create the controller
// $controller = new WonderController( );
 $view = JRequest::getVar('view','comsldr');
 switch($view){
	case 'chitiet':
		$controller->registerDefaultTask('chitiet');
		break;
	default:
		$controller->registerDefaultTask('comsldr');
		break;
 }
// Perform the Request task
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));
 
// Redirect if set by the controller
$controller->redirect();